package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.List;

import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户组
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_group")
public class Group extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 组名称
     */
    private String name;

    /**
     * 序号
     */
    private Integer sortIndex;

    /**
     * 组内人数
     */
    @TableField(exist = false)
    private Integer userCount;

    /**
     * 学科权限
     */
    @TableField(exist = false)
    private List<GroupSubject> groupSubjects;

    /**
     * 数据权限
     */
    @TableField(exist = false)
    private List<GroupRule> groupRules;

    @TableField(exist = false)
    private boolean isCheck = false;

    @TableField(exist = false)
    private String subjects;
}
